package STUDENT.NGUYENSANG.OOPs.EX2_TamGiac;

public class Tinh {
	public int Chuvi(Canh C)
	{
		return (C.getSide1()+C.getSide2()+C.getSide3());
	}
	public double DienTich(Canh C)
	{
		double p=Chuvi(C)/2;
		return Math.sqrt(p*(p-C.getSide1())*(p-C.getSide2())*(p-C.getSide3()));
	}
}
